Builder

class Builder : GeneratedMessage.Builder<BuilderT> , TelemetryProtos.DeviceMetricsOrBuilder

Key native device metrics such as battery level
Protobuf type meshtastic.DeviceMetrics

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Percent of airtime for transmission used within the last hour.
optional float air_util_tx = 4;
Link copied to clipboard

0-100 (>100 means powered)
optional uint32 battery_level = 1;
Link copied to clipboard

Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise).
optional float channel_utilization = 3;
Link copied to clipboard

How long the device has been running since the last reboot (in seconds)
optional uint32 uptime_seconds = 5;
Link copied to clipboard

Voltage measured
optional float voltage = 2;
Link copied to clipboard
open fun getAirUtilTx(): Float

Percent of airtime for transmission used within the last hour.
optional float air_util_tx = 4;
Link copied to clipboard
open fun getBatteryLevel(): Int

0-100 (>100 means powered)
optional uint32 battery_level = 1;
Link copied to clipboard

Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise).
optional float channel_utilization = 3;
Link copied to clipboard
fun getDescriptor(): Descriptors.Descriptor
Link copied to clipboard
open fun getDescriptorForType(): Descriptors.Descriptor
Link copied to clipboard
open fun getUptimeSeconds(): Int

How long the device has been running since the last reboot (in seconds)
optional uint32 uptime_seconds = 5;
Link copied to clipboard
open fun getVoltage(): Float

Voltage measured
optional float voltage = 2;
Link copied to clipboard
open fun hasAirUtilTx(): Boolean

Percent of airtime for transmission used within the last hour.
optional float air_util_tx = 4;
Link copied to clipboard

0-100 (>100 means powered)
optional uint32 battery_level = 1;
Link copied to clipboard

Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise).
optional float channel_utilization = 3;
Link copied to clipboard

How long the device has been running since the last reboot (in seconds)
optional uint32 uptime_seconds = 5;
Link copied to clipboard
open fun hasVoltage(): Boolean

Voltage measured
optional float voltage = 2;
Link copied to clipboard
Link copied to clipboard
open fun mergeFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): TelemetryProtos.DeviceMetrics.Builder
Link copied to clipboard

Percent of airtime for transmission used within the last hour.
optional float air_util_tx = 4;
Link copied to clipboard

0-100 (>100 means powered)
optional uint32 battery_level = 1;
Link copied to clipboard

Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise).
optional float channel_utilization = 3;
Link copied to clipboard

How long the device has been running since the last reboot (in seconds)
optional uint32 uptime_seconds = 5;
Link copied to clipboard

Voltage measured
optional float voltage = 2;